<template>
  <div>
    <ul>
      <li v-for="item in textList">{{ item.id }} -- {{ item.text }}</li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: 'TestList',
    props: {
      textList: Array,
      addItemText: String
    },
    watch: {
      addItemText(n, o) {
        console.log('新值 ', n);
        console.log('旧值', o);
      }
    }
  }
</script>

<style scoped>

</style>
